-
Notifications
You must be signed in to change notification settings - Fork 41
Ported block producer and VRF evaluator #849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
718e9ed to
8631a4a
Compare
node/src/block_producer/vrf_evaluator/block_producer_vrf_evaluator_reducer.rs
Outdated
Show resolved
Hide resolved
node/src/block_producer/vrf_evaluator/block_producer_vrf_evaluator_reducer.rs
Outdated
Show resolved
Hide resolved
| self.injected_blocks.remove(best_tip.hash()); | ||
| state.injected_blocks.remove(best_tip.hash()); | ||
| // set the genesis timestamp on the first best tip update | ||
| // TODO: move/remove once we can generate the genesis block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adonagy we do generate the genesis block already, do you remember the context of this comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we can just set this timestamp as soon as the genesis block gets injected right? (maybe we are even doing it already?)
In which case there is no need to wait for the best tip.
node/src/block_producer/vrf_evaluator/block_producer_vrf_evaluator_reducer.rs
Outdated
Show resolved
Hide resolved
tizoc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, but I need to do another pass. Also lets not merge it before tomorrow's release just in case.
tizoc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xMimir LGTM, please rebase on top of current develop before merging (just to make sure that all commits show up after the v0.11 merge and history doesn't get confusing).
Btw this second pass I did was pretty quick, is there anything I should have paid attention to other than the code moving around and the new callback? (it seems not but just in case)
23382ea to
22b7aaa
Compare
No description provided.